package com.jxin.mall.config.consts;

import lombok.AllArgsConstructor;

/**
 * redis模板类型枚举类
 * @author 蔡佳新
 * @version 1.0
 * @since jdk 1.8
 */
@AllArgsConstructor
public enum RedisTempTypeEnum {
    STRING_JSON_TEMP("stringJsonRedisTemplate", 0),
    CACHE_TEMP("cacheRedisTemplate", 1),
    PROTOBUF_TEMP("protobufRedisTemplate", 2),
    MULTI_PROTOBUF_TEMP("mutilStrProtoRedisUtil", 3);

    /**名称*/
    private String name;
    /**类型*/
    private Integer type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
